<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>
			<?php
			if (isset($title))
				echo $title;
			else
				echo "Eldercare Service Locator - Singapore Silver Pages";
			?>		
		</title>


		<script type="text/javascript">
			var ABC = {};
		</script>

		<script src='<?php echo JS_URL ?>_Shared/jquery-1.5.1.min.js' type='text/javascript'></script>
		<script src='<?php echo JS_URL ?>_Shared/jquery-1.5.1.js' type='text/javascript'></script>
		<script src='<?php echo JS_URL ?>_Shared/jquery-ui-1.8.11.min.js' type='text/javascript'></script>
		<script src='<?php echo JS_URL ?>_Shared/jquery-ui-1.8.11.js' type='text/javascript'></script>
		<script src='<?php echo JS_URL ?>_Shared/App.js' type='text/javascript'></script>
		<script src='<?php echo JS_URL ?>_Shared/plugin/AIC.plugin.Ajax.js' type='text/javascript'></script>

		<link href='<?php echo CSS_URL ?>_Shared/Site.css' rel='stylesheet' type='text/css' />
		<link href='<?php echo CSS_URL ?>_Shared/themes/custom-theme/jquery.ui.all.css' rel='stylesheet' type='text/css' />


		<?php if (isset($javascript))
			echo $javascript; ?>	
<?php if (isset($css))
	echo $css; ?>	

	</head>
	<body>

		<div class="hh">
			<table style="width:100% ; vertical-align: bottom; ">
				<tr style="vertical-align: bottom">
					<td width="200">
<?php echo img(array('src' => IMAGE_URL . 'logo.png', 'width' => '180px')) ?>
					</td>
					<td>
						<h1>Duwit</h1>
					</td>
				</tr>
			</table>
		</div>




		<div class="header-left">
            <div class="datePanel">
                <span class="value">Rabu, 13 Juni 2012 - 21:28:00</span>
            </div>

            <div class="userPanel">
                <img title="Profil User" alt="" src="/app/webroot/img/user-small-grey.png">
                <a href="#!/profiles/myProfile">setan_alas</a>

				<img title="Notifikasi" alt="" src="/app/webroot/img/mail-small-grey.png">
                <span id="notification"><a href="javascript:void(0)">0</a></span>

				<img title="Logout" alt="" src="/app/webroot/img/logout-small-grey.png">
				<a href="/index.php/home/logout">Logout</a>
			</div>

			<div class="menuPanel">
				<a href="#!/transactions/myTransactions" class="ajax active" address="true">Transaksi</a>
				<a href="#!/reports/index" class="ajax" address="true">Rekapitulasi</a>
				<a href="#!/investments/myInvestments" class="ajax                            {activeMenuMatcher:['/investments/myInvestments/*']}" address="true">Investasi</a>
				<a href="#!/consultations/overview" class="ajax                            {activeMenuMatcher:['/discussions/viewDiscussion/*', '/checkups/viewCheckup/*', '/consultations/overview/*','/calculators/viewCalculator/*']}" address="true">Konsultasi</a>
				<!--a class="ajax
				   {activeMenuMatcher:['/articles', '/articles/view/*']}"
				   href="#!/articles">Artikel</a-->
				<a href="#!/profiles/myProfile" class="ajax                            {activeMenuMatcher:['/profiles/myProfile/*', '/budgets/myBudgets', '/categories/myCategories', '/accounts/myAccounts', '/scheduledTransactions/myScheduledTransactions', '/accrualTransactions/myAccrualTransactions']}" address="true">Pengaturan</a>
			</div>

			<img alt="" src="/app/webroot/img/load.gif" class="invisible" id="loadIndicator" style="display: none;">

			<div class="invisible" id="notificationDialog"><a class="close"></a>
				<div class="notificationTitle">Notifikasi:</div>

				<div class="notificationContent"></div>
			</div>

			<div class="header-right">
				<div class="header-center"></div>
			</div>
		</div>





		<hr/>
		<div class='mainContainer'>
			<?php
			if (file_exists(VIEW_PATH . $include_view)) {
				include VIEW_PATH . $include_view;
			} else {
				echo "Invalid Path";
			}
			?>
		</div>

		<br/>
		<div id='footer' class='clear'>footer</div>
	</body>
</html>